
package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.ServerProtect;

public interface ServerProtectDao extends Dao {

    /**
     * Retrieves all of the serverProtects
     */
    public List getServerProtects(ServerProtect serverProtect);

    /**
     * Gets serverProtect's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the serverProtect's id
     * @return serverProtect populated serverProtect object
     */
    public ServerProtect getServerProtect(final Integer id);

    /**
     * Saves a serverProtect's information
     * @param serverProtect the object to be saved
     */    
    public int saveServerProtect(ServerProtect serverProtect);

    /**
     * Removes a serverProtect from the database by id
     * @param id the serverProtect's id
     */
    public void removeServerProtect(final Integer id);
}

